﻿/*************************************************************************************
 *
 * 文 件 名:   RFIDConfig
 * 描    述: 
 * 
 * 版    本：  V1.0
 * 创 建 者：  Naflim 
 * 创建时间：  2023/5/15 18:47:34
 * ======================================================
 * 历史更新记录
 * 版本： V          修改时间：         修改人：
 * 修改内容：
 * ======================================================
*************************************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AccessDoorPolice.Model
{
    public class RFIDConfig
    {
        public List<RFID> RFID { get; set; }
    }

    public class RFID
    {
        public string IP { get; set; }
        public List<int> Antennas { get; set; }
        public byte ComAdr { get; set; }
        public int FrmPort { get; set; }
        public int Port { get; set; }
        public List<string> Epc { get; set; }
        public List<Powerlist> Powerlist { get; set; }
        public int Triggerinfrared { get; set; }

        public int Triggerinfraredout { get; set; }
        public int Triggerinfraredinfo { get; set; }

        public int infor { get; set; }
        public RFID Clone()
        {
            return new RFID
            {
                IP = IP,
                Port = Port,
                Antennas = Antennas,
                ComAdr = ComAdr,
                FrmPort = FrmPort,
                Powerlist = Powerlist,
                Epc = Epc,
                Triggerinfrared = Triggerinfrared,
                Triggerinfraredout = Triggerinfraredout,
                Triggerinfraredinfo = Triggerinfraredinfo,
                infor = infor
            };
        }
    }

    public class Powerlist
    {
        public string Ant { get; set; }
        public string Power { get; set; }
    }
}
